package router

import (
	"gin_learn2/websocket/controller"

	"github.com/gin-gonic/gin"
)

func SetupRouter() *gin.Engine {
	r := gin.Default()

	r.Static("/assets", "./assets")

	r.LoadHTMLGlob("templates/*")

	r.GET("/chat", controller.GoChatController)

	return r
}
